package com.dongdong.controller;

import com.dongdong.service.FreemarkerService;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("freemarker")
public class FreemarkerController {
    @Autowired
    private RedisTemplate redisTemplate;
    @Autowired
    private FreemarkerService freemarkerService;
    @RequestMapping("createPage")
    @ResponseBody
    public String createPage(Long goodsId){
        freemarkerService.createPage(goodsId);
        return "okokokokok";
    }


}
